package com.expoente.view;

import com.expoente.utils.DroidBusUtils;

import android.app.Activity;
import android.content.Intent;
import android.location.Location;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class DroidBusActivity
		extends Activity {

	private Location lastLocation;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		lastLocation = DroidBusUtils.getLocation(this);

		ImageView imageView = (ImageView) findViewById(R.id.logoImageView);
		imageView.setImageResource(R.drawable.icon);

		TextView introductionTextView = (TextView) findViewById(R.id.introductionTextView);
		introductionTextView.setText(R.string.introductionText);

		Button advanceButton = (Button) findViewById(R.id.advance);
		advanceButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View view) {
				Intent intent = new Intent(view.getContext(),
						LineSearchActivity.class);
				startActivity(intent);
			}
		});
	}
}